export type OverTimeModel = {
  id: string | number //id
  totalCount: number //列表个数
  list: any //列表
  fileList: any //附件列表
  entityId: string //流程id
  workFlowList: any
}

const api: ApiConfig = {
  // 我的加班列表
  workTimeList: {
    method: 'GET',
    url: '/oa/workOvertimeApply/list'
  },
  // 我的加班-新增
  workTimeAdd: {
    method: 'POST',
    url: '/oa/workOvertimeApply/save'
  },
  // 我的加班-修改
  workTimeUpdate: {
    method: 'POST',
    url: '/oa/workOvertimeApply/update'
  },
  // 我的加班-详情
  workTimeInfo: {
    method: 'GET',
    url: '/oa/workOvertimeApply/info/:id'
  },
  // 我的加班-撤回
  workTimeRevoke: {
    method: 'POST',
    url: '/process/business/revokeProcessOrder'
  },
  // 我的加班-删除
  workTimeDelete: {
    method: 'POST',
    url: '/process/business/revokeProcessOrder'
  },
  // 部门加班统计列表
  DepWorkTimeList: {
    method: 'GET',
    url: '/oa/workOvertimeApply/deptList'
  },
  // 部门加班统计列表-导出
  DepWorkTimeExport: {
    method: 'GET',
    url: '/oa/workOvertimeApply/deptListExport',
    responseType: 'blob'
  },
  // 全馆加班统计列表
  AllWorkTimeList: {
    method: 'GET',
    url: '/oa/workOvertimeApply/allList'
  },
  // 全馆加班统计列表-导出
  AllWorkTimeExport: {
    method: 'GET',
    url: '/oa/workOvertimeApply/allListExport',
    responseType: 'blob'
  },
  // 查询部门列表接口
  BbgDeptList: {
    method: 'GET',
    url: '/sys/sysInstitution/getBbgDeptList'
  },
  // 查询部门下人员列表接口
  UserByDeptIdList: {
    method: 'GET',
    url: '/sys/sysInstitution/getUserByDeptIdList'
  },
  // 加班申请校验
  getWorkOvertimeApplyCheck: {
    method: 'POST',
    url: '/oa/workOvertimeApply/getWorkOvertimeApplyCheck' 
  },
  // 加班申请校验（用户流程处理冲突）
  getWorkOvertimeApplyCheck1: {
    method: 'POST',
    url: '/oa/workOvertimeApply/getWorkOvertimeApplyCheck1' 
  },
  // 加班申请提交校验
  getRepeatedSubmissionCheck: {
    method: 'GET',
    url: '/oa/workOvertimeApply/getRepeatedSubmissionCheck' 
  },
  // 获取加班类型
  getWorkOvertimeType: {
    method: 'POST',
    url: '/oa/workOvertimeApply/getWorkOvertimeType' 
  }
}

export default api
